Skip to content

Update 'Content-Length' value for fix characters missing #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Update 'Content-Length' value for fix characters missing #64

wants to merge 2 commits into from

Conversation

EthianWong
Copy link
Contributor

In other languages (Chinese , Japanese .... )
One word maybe use two or three bytes ...

var a = "我爱你";
console.log(a.length); //3
console.log(new Buffer(a).length); //9

So you should use new Buffer for set "Content-Length" and this problem will be resolve

@CLAassistant
Copy link

CLAassistant commented Nov 10, 2016

CLA assistant check
All committers have signed the CLA.

@niemyjski
Copy link
Member

Thanks a ton, I'll review these changes tomorrow!

@EthianWong EthianWong closed this Nov 11, 2016
@niemyjski
Copy link
Member

This is a duplicate of #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants